function onMapsClick(param)
{
    // 点击取消选中
    if (!geoName) {
        return;
    }   
}
function getCapacity(){
    // 参数
    jQuery.ajaxSettings.async = false;
    var params = [];
    var geoLevel = getGeoLevel(geoName);
    params.push('parameters[national_id]=' + getNationalID(geoLevel, geoName));
    params.push('parameters[geo_level]=' + geoLevel);
    params.push('parameters[year]=' + jQuery('#edit-year').val());
    params.push('parameters[geo_name]=' + (!geoName ? geoChain[geoChain.length-1] : geoName));

    jQuery.getJSON(nonghuaBaseUrl + '/api/capacity?' + params.join('&'), function (json) {
        // 更新化肥饼状图
        optioncapacity.series[0].data = json.fertilizer;
        pieChartCapacity.setOption(optioncapacity, true);

        jQuery('#myModal').modal('show');

    });
}
/*******************************图表相关************************************/
/* 化肥饼状图选项、参数 */
var optioncapacity = {
    title : {
        text: '化肥市场容量',
        x:'center'
    },
    tooltip : {
        trigger: 'item',
        formatter: "{b} : {c} ({d}%)"
    },
    animantion: false,
    calculable : false,
    series : [
        {
            type:'pie',
            radius : '55%',
            center: ['50%', '60%'],
            data:[]
        }
    ]
};

var pieChartCapacity = echarts.init(document.getElementById('divcapacity'));

jQuery(function($) {
    initMap("#map_previous", "#map_next");
});